﻿#ifndef CONNECTTHREAD_H
#define CONNECTTHREAD_H
#include"SocketHelper.h"
#include"message.h"
#include <QObject>
#include <QDebug>
class ConnectThread : public QObject
{
    Q_OBJECT
public:
    explicit ConnectThread(SOCKET sockCli,QObject *parent = nullptr);
    SOCKET sockCli;
signals:
    void noticeReceviceMessage(Message m);
    void noticeGetFirendList(Message m);
    void updateNewFriend(Message m);
    void requestAddFriend(Message m);
    void AddFriendSucessfully(Message m);
public slots:
    void connectWithServer();
private:
    Message m;
};

#endif // CONNECTTHREAD_H
